package com.haizhi.crm.common.constant;

/**
 * ES 查询操作符
 * Created by ch on 2018/2/29.
 */
public interface EsOperator {


    static String TERM = "term";                   //精确匹配
    static String MATCH = "match";                 //模糊匹配
    static String RANGE = "range";                 //范围
    static String PREFIX = "prefix";               //未启用
    static String QUERY_STRING = "query_string";   //未启用
    static String TEXT = "text";                   //未启用
    static String MISSING = "missing";             //未启用
    static String WILDCARD = "wildcard";           //未启用
    static String FUZZY = "fuzzy";                 //未启用


    static String KEY_TYPE = "type";               //type
    static String KEY_FIELD = "field";             //field
    static String KEY_FROM = "from";               //from
    static String KEY_TO = "to";                   //to
    static String KEY_RANGES = "ranges";           //ranges
    static String KEY_VALUES = "values";           //values


    static Integer PAGE_MAX_PAGESIZE = 10000;      //最大页大小
    static Integer PAGE_DEFAULT_PAGENO = 0;        //默认首页
    static Integer PAGE_DEFAULT_PAGESIZE = 10;     //默认页大小


}
